import { NgModule } from '@angular/core';
import { BrowserModule, Title } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http';

import { ShareModule } from './share.module';
import { HomeModule } from './home.module';
import { DepartmentModule } from './department.module';
import { UserModule } from './user.module';
import { AssetModule } from './asset.module';
import { AppRoutingModule } from '../router/app';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

import { AppComponent } from '../components/app/app';
import { LoginComponent } from '../components/login/login';
import { ConfirmDialogComponent } from '../components/confirmDialog/confirmDialog';

import { HomeService } from '../service/homeService';
import { LoginService } from '../service/loginService';
import { Loginauth } from '../service/loginauth';


@NgModule({
  imports: [ BrowserModule, ShareModule, HttpClientModule, AppRoutingModule,
            BrowserAnimationsModule, HomeModule, AssetModule, DepartmentModule,
              UserModule],
  declarations: [
    AppComponent,
    LoginComponent,
    ConfirmDialogComponent,
  ],
  entryComponents: [ ConfirmDialogComponent ],
  providers: [
    Title,
    LoginService,
    Loginauth
  ],
  bootstrap:    [ AppComponent ]
})
export class AppModule { }
